import { UIState } from './UIState';
import { useContext } from 'react';
import { MobXProviderContext } from 'mobx-react';

const store = {
  UIState: new UIState(),
};

export default store;

export type StoreType = typeof store;

export function useStore() {
  const store = useContext(MobXProviderContext) as StoreType;
  return store;
}
